import Vue from 'vue'
import Vuex from 'vuex'
import userStore from './userStore'

Vue.use(Vuex)

export default new Vuex.Store({
  state: { // 主模块的状态
    loading: false
  },
  getters: {
  },
  mutations: {
    setLoading(state) {
      state.loading = !state.loading
    }
  },
  actions: {
  },
  modules: {
    user: userStore
  }
})
